<?xml version='1.0' encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <link href="cpip.css" rel="stylesheet" type="text/css" />
    <title>File: /Users/paulross/dev/linux/linux-3.13/arch/x86/include/asm/sparsemem.h</title>
  </head>
  <body>
    <h1>File: /Users/paulross/dev/linux/linux-3.13/arch/x86/include/asm/sparsemem.h</h1>
    <p>Green shading in the line number column
means the source is part of the translation unit, red means it is conditionally excluded.
Highlighted line numbers link to the translation unit page. Highlighted macros link to
the macro page.</p>
    <pre><a name="1" /><span class="Maybe">       1:</span> <span class="f">#</span><span class="n">ifndef</span> <a href="cpu.c_macros_ref.html#_X0FTTV9YODZfU1BBUlNFTUVNX0hfMA__"><span class="b">_ASM_X86_SPARSEMEM_H</span></a>
<a name="2" /><span class="Maybe">       2:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_ref.html#_X0FTTV9YODZfU1BBUlNFTUVNX0hfMA__"><span class="b">_ASM_X86_SPARSEMEM_H</span></a>
<a name="3" /><span class="Maybe">       3:</span> 
<a name="4" /><span class="Maybe">       4:</span> <span class="f">#</span><span class="n">ifdef</span> <a href="cpu.c_macros_ref.html#_Q09ORklHX1NQQVJTRU1FTV8w"><span class="b">CONFIG_SPARSEMEM</span></a>
<a name="5" /><span class="Maybe">       5:</span> <span class="k">/*</span>
<a name="6" /><span class="Maybe">       6:</span> <span class="k"> * generic non-linear memory support:</span>
<a name="7" /><span class="Maybe">       7:</span> <span class="k"> *</span>
<a name="8" /><span class="Maybe">       8:</span> <span class="k"> * 1) we will not split memory into more chunks than will fit into the flags</span>
<a name="9" /><span class="Maybe">       9:</span> <span class="k"> *    field of the struct page</span>
<a name="10" /><span class="Maybe">      10:</span> <span class="k"> *</span>
<a name="11" /><span class="Maybe">      11:</span> <span class="k"> * SECTION_SIZE_BITS        2^n: size of each section</span>
<a name="12" /><span class="Maybe">      12:</span> <span class="k"> * MAX_PHYSADDR_BITS        2^n: max size of physical address space</span>
<a name="13" /><span class="Maybe">      13:</span> <span class="k"> * MAX_PHYSMEM_BITS        2^n: how much memory we can have in that space</span>
<a name="14" /><span class="Maybe">      14:</span> <span class="k"> *</span>
<a name="15" /><span class="Maybe">      15:</span> <span class="k"> */</span>
<a name="16" /><span class="Maybe">      16:</span> 
<a name="17" /><span class="False">      17:</span> <span class="f">#</span><span class="n">ifdef</span> <span class="b">CONFIG_X86_32</span>
<a name="18" /><span class="False">      18:</span> <span class="f">#</span> <span class="n">ifdef</span> <span class="b">CONFIG_X86_PAE</span>
<a name="19" /><span class="False">      19:</span> <span class="f">#</span>  <span class="n">define</span> <a href="cpu.c_macros_ref.html#_U0VDVElPTl9TSVpFX0JJVFNfMA__"><span class="b">SECTION_SIZE_BITS</span></a>    <span class="c">29</span>
<a name="20" /><span class="False">      20:</span> <span class="f">#</span>  <span class="n">define</span> <a href="cpu.c_macros_noref.html#_TUFYX1BIWVNBRERSX0JJVFNfMA__"><span class="b">MAX_PHYSADDR_BITS</span></a>    <span class="c">36</span>
<a name="21" /><span class="False">      21:</span> <span class="f">#</span>  <span class="n">define</span> <a href="cpu.c_macros_ref.html#_TUFYX1BIWVNNRU1fQklUU18w"><span class="b">MAX_PHYSMEM_BITS</span></a>    <span class="c">36</span>
<a name="22" /><span class="False">      22:</span> <span class="f">#</span> <span class="n">else</span>
<a name="23" /><span class="False">      23:</span> <span class="f">#</span>  <span class="n">define</span> <a href="cpu.c_macros_ref.html#_U0VDVElPTl9TSVpFX0JJVFNfMA__"><span class="b">SECTION_SIZE_BITS</span></a>    <span class="c">26</span>
<a name="24" /><span class="False">      24:</span> <span class="f">#</span>  <span class="n">define</span> <a href="cpu.c_macros_noref.html#_TUFYX1BIWVNBRERSX0JJVFNfMA__"><span class="b">MAX_PHYSADDR_BITS</span></a>    <span class="c">32</span>
<a name="25" /><span class="False">      25:</span> <span class="f">#</span>  <span class="n">define</span> <a href="cpu.c_macros_ref.html#_TUFYX1BIWVNNRU1fQklUU18w"><span class="b">MAX_PHYSMEM_BITS</span></a>    <span class="c">32</span>
<a name="26" /><span class="False">      26:</span> <span class="f">#</span> <span class="n">endif</span>
<a name="27" /><span class="Maybe">      27:</span> <span class="f">#</span><span class="n">else</span> <span class="k">/* CONFIG_X86_32 */</span>
<a name="28" /><span class="Maybe">      28:</span> <span class="f">#</span> <span class="n">define</span> <a href="cpu.c_macros_ref.html#_U0VDVElPTl9TSVpFX0JJVFNfMA__"><span class="b">SECTION_SIZE_BITS</span></a>    <span class="c">27</span> <span class="k">/* matt - 128 is convenient right now */</span>
<a name="29" /><span class="Maybe">      29:</span> <span class="f">#</span> <span class="n">define</span> <a href="cpu.c_macros_noref.html#_TUFYX1BIWVNBRERSX0JJVFNfMA__"><span class="b">MAX_PHYSADDR_BITS</span></a>    <span class="c">44</span>
<a name="30" /><span class="Maybe">      30:</span> <span class="f">#</span> <span class="n">define</span> <a href="cpu.c_macros_ref.html#_TUFYX1BIWVNNRU1fQklUU18w"><span class="b">MAX_PHYSMEM_BITS</span></a>    <span class="c">46</span>
<a name="31" /><span class="Maybe">      31:</span> <span class="f">#</span><span class="n">endif</span>
<a name="32" /><span class="Maybe">      32:</span> 
<a name="33" /><span class="Maybe">      33:</span> <span class="f">#</span><span class="n">endif</span> <span class="k">/* CONFIG_SPARSEMEM */</span>
<a name="34" /><span class="True">      34:</span> <span class="f">#</span><span class="n">endif</span> <span class="k">/* _ASM_X86_SPARSEMEM_H */</span>
<a name="35" /><span class="True">      35:</span> </pre>
  </body>
</html>
